package com.zhl.media.app.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

import java.util.ArrayList;
import java.util.List;

@Entity
public class Building {
    @Id
    private String id;
    //项目名称
    private String name;
    // 总安装数
    private int sumNum;
    // 已安装数
    private int yiNum;
    // 项目ID
    private String projectId;
    @Transient
    private List<Unit> units = new ArrayList<>();

    @Generated(hash = 1772511359)
    public Building(String id, String name, int sumNum, int yiNum,
            String projectId) {
        this.id = id;
        this.name = name;
        this.sumNum = sumNum;
        this.yiNum = yiNum;
        this.projectId = projectId;
    }
    @Generated(hash = 1037559675)
    public Building() {
    }
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getSumNum() {
        return this.sumNum;
    }
    public void setSumNum(int sumNum) {
        this.sumNum = sumNum;
    }
    public int getYiNum() {
        return this.yiNum;
    }
    public void setYiNum(int yiNum) {
        this.yiNum = yiNum;
    }
    public String getProjectId() {
        return this.projectId;
    }
    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public List<Unit> getUnits() {
        return units;
    }

    public void setUnits(List<Unit> units) {
        this.units = units;
    }
}
